#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int cnt = 0;
	int n = 0;
	scanf("%d", &n);

	do
	{
		cnt++;
		n = n / 10;
	} while (n);
	printf("%d\n", cnt);
	return 0;
}